#ifndef GAME_UNIT_H
#define GAME_UNIT_H

#include <SDL3/SDL.h>
#include "common/point.h"
#include "common/resource_manager.h"
#include "game_unit_type.h"

class GameUnit {
    public:
    virtual GameUnitType getType() = 0;
    GameUnit(Point& pos) : pos(pos) {}
    virtual ~GameUnit() = default;
    virtual void draw(SDL_Renderer* renderer, SDL_FRect* range, ResourceManager& resManager) = 0;

    Point& getPos() { return pos; }

    private:
    Point pos;
};

#endif